package hu.bme.mit.Nonogram.entities;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @author Agnes Salanki
 *
 */
@Entity
@Table(name = "NRow")
public class NRow implements Serializable{
	/**
	 * Generated serialVersionUID
	 */
	private static final long serialVersionUID = 8988157140226456992L;

	@Id
	@GeneratedValue
	long id;
	
	@ManyToOne
	@JoinColumn (name = "nTable_id")
	private NTable nTable;
	
	private int rowNumber;
	
	private String values;
	
	/**
	 * @return id
	 * Gets the ID of the Row.
	 */
	public long getId() {
		return id;
	}
	/**
	 * @param id
	 * Sets the ID of the Row.
	 */
	public void setId(long id) {
		this.id = id;
	}
	/**
	 * @return nTable
	 * Gets the NTable linked to the Row.
	 */
	public NTable getnTable() {
		return nTable;
	}
	/**
	 * @param nTable
	 * Sets the NTable linke to the Row.
	 */
	public void setnTable(NTable nTable) {
		this.nTable = nTable;
	}
	/**
	 * @return values
	 * Gets a Row of the Nonogram.
	 */
	public String getValues() {
		return values;
	}
	
	/**
	 * @param values
	 * Sets a Row of the Nonogram.
	 */
	public void setValues(String values) {
		this.values = values;
	}
	/**
	 * @return rowNumber
	 * Gets the number of the Row in the Nonogram.
	 */
	public int getRowNumber() {
		return rowNumber;
	}
	/**
	 * @param rowNumber
	 * Sets the number of the Row in the Nonogram.
	 */
	public void setRowNumber(int rowNumber) {
		this.rowNumber = rowNumber;
	}
}
